<template>
    <div>
      
        <p>{{ msg }}</p>
        <button @click="rev">翻转世界</button>
    </div>
</template>

<script>
export default {
    data() {
        return {
            msg: 'Start,light'
        }
    },
    methods: {
        rev() {
           
            const arr = this.msg.split('')
           
            this.msg = arr.reverse().join('')

        }
    }
}
</script>

<style>

</style>